﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ViewResult.aspx.cs" Inherits="UniversityManagementSystem.UI.ViewResult" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="../Styles/fontStyleSheet.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="fontStyle" style="height : 900px;">
        <br />
        Student Information<br />
        Registration No&nbsp;&nbsp;
        <asp:TextBox ID="regNoTextBox" runat="server"></asp:TextBox>
    &nbsp;&nbsp;&nbsp;
        <asp:Button ID="SearchButton" runat="server" onclick="SearchButton_Click" 
            Text="Search" />
        <asp:RequiredFieldValidator ID="registrationNoRequiredFieldValidator" 
            runat="server" ControlToValidate="regNoTextBox" 
            ErrorMessage="Student Registration No Is Required" ForeColor="Red">*</asp:RequiredFieldValidator>
        <br />
        <br />
        Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="nameTextBox" runat="server" ReadOnly="True"></asp:TextBox>
        <br />
        <br />
        Email&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="emailTextBox" runat="server" ReadOnly="True"></asp:TextBox>
        <br />
        <br />
        Department&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="departmentTextBox" runat="server" ReadOnly="True"></asp:TextBox>
        <br />
        <br />
        <asp:Label ID="resultMessage" runat="server"></asp:Label>
    &nbsp;&nbsp;&nbsp;
        <asp:Label ID="messageLabel" runat="server"></asp:Label>
        <br />
        <br />
        No of&nbsp; Enrolled Course&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="noOfEnrolledCoursesTextBox" runat="server"></asp:TextBox>
        <br />
        <br />
        No of Completed Course
        <asp:TextBox ID="noOfCompletedCoursesTextBox" runat="server" ReadOnly="True"></asp:TextBox>
        <br />
        <br />
        No of Remaining Course
        <asp:TextBox ID="noOfRemainingCoursesTextBox" runat="server" ReadOnly="True"></asp:TextBox>
        <br />
        <br />
        Total Credit of Enrolled Course&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="totalCreditTextBox" runat="server" ReadOnly="True"></asp:TextBox>
        <br />
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        Completed Credits&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="completedCreditTextBox" runat="server" ReadOnly="True"></asp:TextBox>
        <br />
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        Remaining Credits&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="ramainingTextBox" runat="server" ReadOnly="True"></asp:TextBox>
        <br />
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        CGPA&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="cgpaTextBox" runat="server" ReadOnly="True"></asp:TextBox>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Grade Letter &nbsp;&nbsp;
        <asp:TextBox ID="gradeLetterTextBox" runat="server" ReadOnly="True"></asp:TextBox>
        <br />
        <br />
        <asp:Label ID="eligibleMessage" runat="server"></asp:Label>
        <br />
        <br />
        <asp:GridView ID="detailsResultGridView" runat="server" 
            AutoGenerateColumns="False">
            <Columns>
                <asp:BoundField DataField="CourseName" HeaderText="Course Name" ReadOnly="True" 
                    SortExpression="CourseName" />
                <asp:BoundField DataField="CourseCredit" HeaderText="Course Credit" 
                    ReadOnly="True" SortExpression="CourseCredit" />
                <asp:BoundField DataField="ObtainedGradeLetter" 
                    HeaderText="Status/Grade Letter" ReadOnly="True" 
                    SortExpression="ObtainedGradeLetter" />
            </Columns>
        </asp:GridView>
        <br />
        <br />
        <asp:ValidationSummary ID="ValidationSummary" runat="server" 
            ShowMessageBox="True" ShowSummary="False" />
    </div>
</asp:Content>
